package model

import (
	"time"

	"gorm.io/gorm"
)

type BaseModel struct {
	ID        int32     `gorm:"primarykey"`
	CreatedAt time.Time `gorm:"column:add_time"`
	UpdatedAt time.Time `gorm:"column:update_time"`
	DeletedAt gorm.DeletedAt
	IsDeleted bool
}

// 库存表
type Stock struct {
	BaseModel
	GoodId   int32
	StockNum int32
}

// 库存记录
type StockLog struct {
	BaseModel
	UserId      int32
	ConfirmType int32 //操作类型  1代表入库 2代表出库
	GoodId      int32
	OrderSnc    string
}
